package com.vector;

import java.util.Vector;

public class VectorTest {
    public static void main(String[] args) {
        Vector<Double> myVector = new Vector<>();
        for(int i = 1; i <= 10; i++) {
            myVector.addElement(Math.random());
        }
        System.out.println(myVector.elementAt(5));
        myVector.insertElementAt(55555d, 5);
        System.out.println(myVector.elementAt(6));
        Object o = (Object) new String("12221");
    }
}
